import request from '@/utils/request'

//获取机器人任务列表
export function getRobotTaskList(data) {
    return request({
      url: '/cyjqr/cyTaskConfig/cyListInfo',
      method: 'get',
      params:data
    })
}

//删除
export function dleteTask(id) {
    return request({
      url: '/cyjqr/cyTaskConfig/' + id,
      method: 'delete'
    })
}

//获取工艺属性
export function GetAttrData() {
  return request({
    url: '/cyjqr/cyPrepareConfig/cyAttrList',
    method: 'get'
  })
}

//获取池体编号
export function GetPoorNoData(data) {
  return request({
    url: '/cyjqr/cyPrepareConfig/cyPondList',
    method: 'post',
    params:data
  })
}

//新增
export function AddChkTask(data) {
  return request({
    url: '/cyjqr/cyTaskConfig',
    method: 'post',
    data:data
  })
}

//获取查看详情数据
export function GetViewDetails(id) {
  return request({
    url: '/cyjqr/cyTaskConfig/cylistpoint/' + id,
    method: 'get'
  })
}

//获取机器人信息
export function getRobotInfo() {
  return request({
    url: '/cyjqr/cyRobotConfig/cyListInfo',
    method: 'get'
  })
}

//设置自动任务
export function Automatictask(id) {
  return request({
    url: '/cyjqr/cyTaskConfig/setautotask/' + id,
    method: 'get'
  })
}

//取消自动任务
export function Canceltask(id) {
  return request({
    url: '/cyjqr/cyTaskConfig/usetautotask/' + id,
    method: 'get'
  })
}
